import 'package:flutter/material.dart';
import 'package:flutterhello/pages/two/widget/invite.dart';
import 'package:get/get.dart';

class TwoPage extends StatefulWidget {
  @override
  _TwoPageState createState() => _TwoPageState();
}

class _TwoPageState extends State<TwoPage> with AutomaticKeepAliveClientMixin {
  @override
  bool get wantKeepAlive => true;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: PreferredSize(
        child: AppBar(
          title: Text('招募'),
          centerTitle: true,
          actions: <Widget>[
            IconButton(
              icon: Icon(
                Icons.add,
                color: Colors.white,
              ),
              onPressed: () {
                Get.toNamed('/add_team_user'); // do something
              },
            ),
          ],
        ),
        preferredSize: Size.fromHeight(50),
      ),
      body: Invite(),
    );
  }
}
